A Simple Transformation for ONine-Parsable Grammars and its Termination Properties
نویسنده
چکیده
A b s t r a c t We present, in easily reproducible terms, a simple t ransformat ion for offline-parsable grammars which results in a provably te rmina t ing parsing program directly top-down interpretable in Prolog. The t ransformat ion consists in two steps: (1) removal of empty-product ions, followed by: (2) left-recursion el imination. It is related bo th to left-corner parsing (where the g rammar is compiled, ra ther than interpreted through a parsing program, and with the advantage of guaranteed te rmina t ion in the presence of empty productions) and to the Generalized Greibach Normal Form for I)CGs (with the advantage of implementa t ion simplicity).
منابع مشابه
A Simple Transformation for Offline-Parsable Grammars and its Termination Properties
We present, in easily reproducible terms, a simple transformation for offline-parsable grammars which results in a provably terminating parsing program directly top-down interpretable in Prolog. The transformation consists in two steps: (1) removal of empty-productions, followed by: (2) left-recursion elimination. It is related both to left-corner parsing (where the grammar is compiled, rather ...
متن کاملA general scheme for some deterministically parsable grammars and their strong equivalents
In the past years there have been many attempts to fill in the gap between the classes of LL(k) and LR(k) grammars with new classes of deterministically parsable grammars. Almost always the introduction of a new class was accompanied by a parsing method and/or a grammatical transformation fitting the following scheme. If parsers were at the centre of the investigation the new method used to be ...
متن کاملCh(k) Grammars: A Characterization of LL(k) Languages
From the point of view of parsing the LL(K] grammars constitute a very attractive class of context-free grammars. For each LL{K] grammar a top-down parsing algorithm can be devised which is essentially a one-state deterministic push-down automaton. From a more theoretiG point of view LL[K) grammars are attractive as well. It is well-known, for example, that it is decidable whether two LLfk) gra...
متن کاملA Generalization of the Offline Parsable Grammars
The offline parsable grammars apparently have enough formal power to describe human language, yet the parsing problem for these grammars is solvable. Unfortunately they exclude grammars that use x-bar theory and these grammars have strong linguistic justification. We define a more general class of unification grammars, which admits x-bar grammars while preserving the desirable properties of off...
متن کاملOff-line Parsability and the Well-foundedness of Subsumption
Typed feature structures are used extensively for the specification of linguistic information in many formalisms. The subsumption relation orders TFSs by their information content. We prove that subsumption of acyclic TFSs is well-founded, whereas in the presence of cycles general TFS subsumption is not well-founded. We show an application of this result for parsing, where the well-foundedness ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1994